package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.MonitorQuotaConf;

public class MonitorQuotaConfRowWapper implements RowMapper<MonitorQuotaConf> {
	@Override
	public MonitorQuotaConf mapRow(ResultSet rss, int rowNum)
			throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		MonitorQuotaConf vo = new MonitorQuotaConf();
		vo.setId(rs.getString("id"));
		vo.setQuotaId(rs.getString("quota_id"));
		vo.setRuleSn(rs.getString("rule_sn"));
		vo.setValue1(rs.getString("value1"));
		vo.setValue2(rs.getString("value2"));
		vo.setAlterTemplate(rs.getString("alter_template"));
		vo.setMtime(rs.getDate("mtime"));
		vo.setRemark(rs.getString("remark"));
		vo.setAlterPipeline(rs.getString("alter_pipeline"));
		return vo;
	}

}
